Skip to content

Instantly share code, notes, and snippets.

View k2tzumi's full-sized avatar
🚴‍♂️

Katsumi Kato k2tzumi

🚴‍♂️
View GitHub Profile
@k2tzumi
k2tzumi / AttributedSomeTest.php
Created March 28, 2024 02:14
Test cases with Annotated
<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class AnnotatedSomeTest extends TestCase
{
#[\PHPUnit\Framework\Attributes\Test]
public function 日本語テストケース名(): void
{
@k2tzumi
k2tzumi / AnnotatedSomeTest.php
Last active March 28, 2024 02:12
Test cases with test annotation
<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class AnnotatedSomeTest extends TestCase
{
/**
* @test
*/
desc: まずはお馴染みHello world!
steps:
-
dump: "'Hello world!'"
@k2tzumi
k2tzumi / cdp-runn.yml
Created November 11, 2023 10:29
A runn scenario where you try to break Google's Auth authentication using the Chrome DevTools Protocol and get played.
desc: Scenario of trying to break Google's Auth authentication using Chrome DevTools Protocol and getting played.
runners:
cc: chrome://new
vars:
email: ${EMAIL}
steps:
clickLogin:
desc: "Click Login button"
cc:
actions:
@k2tzumi
k2tzumi / test-with-coverage.yml
Last active November 21, 2020 07:13
jestのコードカバレッジレポートをPRコメントするGitHub Actionsワークフロー
name: test with code coverage
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- '**.vue'
- '**.js'
jobs:
cleanup-runs:
runs-on: ubuntu-latest
@k2tzumi
k2tzumi / coverage.yml
Last active January 16, 2022 07:13
PHPUnitのコードカバレッジレポートをPRコメントするGitHub Actionsワークフロー
name: code coverage
on:
pull_request:
types: [opened, reopened, synchronize]
paths: '**.php'
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
@k2tzumi
k2tzumi / development_thinking.puml
Created May 16, 2018 10:33
実装時の思考フロー
@startuml
title 実装時の思考フロー
(ユビキタス言語) as (Issue)
(DSL化された図解) as (DSL)
(詳細化されたDSL) as (UML)
(プログラミング言語) as (Programming)
(DSL) <|-- (UML)
(UML) -> (UML) : ブラッシュアップ・細分化
@k2tzumi
k2tzumi / initial_thinking.puml
Created May 16, 2018 10:32
初期の思考フロー
@startuml
title 初期の思考フロー
(抽象的な概念\n(イメージ)) as (Concept)
(DSL化された図解) as (DSL)
(用語) as (Terminology)
(ユビキタス言語) as (Overview)
(DSL) -> (Terminology) : 分析・抽出
@startuml
title 開発フロー(要求分析・設計)
box "Involves"
actor Author as "Author"
actor Reviewers as "レビュアー"
actor Assignees as "担当"
/' actor Commenter as "コメントした人" '/
# encoding: utf-8
@contribute_tech_blog
Feature: Techブログに投稿する
Scenario: 会心の投稿
Given いいネタを思いつく
When ブログを執筆する
And レビュー依頼する
And フィードバックを反映する
And ブログをPOSTする
Then ブログが公開されること