phpunit-snapshot-assertions
A way to test without writing actual test cases
파일 탐색기
최종 버전 다운로드 (.zip)- config.yml
- dependabot-auto-merge.yml
- pint.yml
- run-tests.yml
- update-changelog.yml
- dependabot.yml
- FUNDING.yml
- _run-phpunit.php
- update-snapshots
- Order.php
- OrderLine.php
- OrderSerializer.php
- OrderSerializerTest__it_can_serialize_an_order__1.json
- OrderSerializerTest.php
- composer.json
- phpunit.xml
- PhpUnitCompatibility.php
- SnapshotDirectoryAware.php
- SnapshotIdAware.php
- HtmlDriver.php
- ImageDriver.php
- JsonDriver.php
- ObjectDriver.php
- TextDriver.php
- XmlDriver.php
- YamlDriver.php
- CantBeSerialized.php
- Driver.php
- Filename.php
- Filesystem.php
- MatchesSnapshots.php
- Snapshot.php
- .gitignore
- AssertionTest__can_match_a_file_snapshot__1.jpg
- AssertionTest__can_match_a_file_snapshot_with_explicit_id__s-my-file-snapshot.jpg
- MatchesSnapshotTest__it_can_mismatch_a_file_snapshot__1.jpg
- MatchesSnapshotTest__it_can_mismatch_a_file_snapshot_with_a_different_extension__1.jpg
- MatchesSnapshotTest__it_can_update_a_file_snapshot__1.jpg
- MatchesSnapshotTest__it_can_update_a_file_snapshot_with_a_different_extension__1.jpg
- MatchesSnapshotTest__it_cleans_filenames_on_file_snapshot with dataset Empty__1.jpg
- MatchesSnapshotTest__it_deletes_the_persisted_failed_file_before_a_file_snapshot_assertion__1.jpg
- MatchesSnapshotTest__it_persists_the_failed_file_after_mismatching_a_file_snapshot__1.jpg
- AssertionTest__can_do_multiple_snapshot_assertions__1.txt
- AssertionTest__can_do_multiple_snapshot_assertions__2.txt
- AssertionTest__can_match_a_file_hash_snapshot__1.txt
- AssertionTest__can_match_a_file_hash_snapshot_with_explicit_id__s-my-file-hash-snapshot.txt
- AssertionTest__can_match_a_json_snapshot__1.json
- AssertionTest__can_match_a_json_snapshot_with_explicit_id__s-my-json-snapshot.json
- AssertionTest__can_match_a_snapshot_with_explicit_id__s-my-snapshot.txt
- AssertionTest__can_match_a_string_snapshot__1.txt
- AssertionTest__can_match_a_text_snapshot_with_explicit_id__s-my-text-snapshot.txt
- AssertionTest__can_match_a_yaml_snapshot_with_explicit_id__s-my-yaml-snapshot.yml
- AssertionTest__can_match_an_array_snapshot__1.json
- AssertionTest__can_match_an_html_snapshot__1.html
- AssertionTest__can_match_an_html_snapshot_with_explicit_id__s-my-html-snapshot.html
- AssertionTest__can_match_an_object_snapshot_with_explicit_id__s-my-object-snapshot.yml
- AssertionTest__can_match_an_xml_snapshot__1.xml
- AssertionTest__can_match_an_xml_snapshot_with_explicit_id__s-my-xml-snapshot.xml
- AssertionTest__explicit_ids_do_not_affect_auto_increment_ids__1.txt
- AssertionTest__explicit_ids_do_not_affect_auto_increment_ids__2.txt
- AssertionTest__explicit_ids_do_not_affect_auto_increment_ids__3.txt
- AssertionTest__explicit_ids_do_not_affect_auto_increment_ids__s-another-named.txt
- AssertionTest__explicit_ids_do_not_affect_auto_increment_ids__s-named.txt
- AssertionTest__numeric_explicit_ids_do_not_conflict_with_auto_increment_ids__1.txt
- AssertionTest__numeric_explicit_ids_do_not_conflict_with_auto_increment_ids__2.txt
- AssertionTest__numeric_explicit_ids_do_not_conflict_with_auto_increment_ids__s-1.txt
- AssertionTest__numeric_explicit_ids_do_not_conflict_with_auto_increment_ids__s-2.txt
- MatchesSnapshotTest__it_can_match_an_existing_file_hash_snapshot__1.json
- MatchesSnapshotTest__it_can_match_an_existing_html_snapshot__1.html
- MatchesSnapshotTest__it_can_match_an_existing_json_snapshot__1.json
- MatchesSnapshotTest__it_can_match_an_existing_string_snapshot__1.json
- MatchesSnapshotTest__it_can_match_an_existing_xml_snapshot__1.xml
- MatchesSnapshotTest__it_can_mismatch_a_file_hash_snapshot__1.txt
- MatchesSnapshotTest__it_can_mismatch_a_html_snapshot__1.html
- MatchesSnapshotTest__it_can_mismatch_a_json_snapshot__1.json
- MatchesSnapshotTest__it_can_mismatch_a_string_snapshot__1.txt
- MatchesSnapshotTest__it_can_mismatch_a_xml_snapshot__1.xml
- MatchesSnapshotTest__it_can_update_a_html_snapshot__1.html
- MatchesSnapshotTest__it_can_update_a_json_snapshot__1.json
- MatchesSnapshotTest__it_can_update_a_snapshot_with_env_var__1.txt
- MatchesSnapshotTest__it_can_update_a_string_snapshot__1.txt
- MatchesSnapshotTest__it_can_update_a_xml_snapshot__1.xml
- file.jpg
- file.png
- snapshot.html
- snapshot.json
- snapshot.xml
- snapshot.yml
- string_snapshot.txt
- file_without_extension
- friendly_man.jpg
- no_man.png
- troubled_man.jpg
- AssertionTest.php
- ComparesSnapshotFiles.php
- MatchesSnapshotTest.php
- UpdateSnapshotsBinaryTest.php
- HtmlDriverTest.php
- ImageDriverTest.php
- JsonDriverTest.php
- ObjectDriverTest.php
- TextDriverTest.php
- XmlDriverTest.php
- YamlDriverTest.php
- testA.png
- testB.png
- testC.png
- FilenameTest.php
- SnapshotTest.php
- .editorconfig
- .gitattributes
- .gitignore
- CHANGELOG.md
- composer.json
- LICENSE.md
- package.json
- phpunit.xml.dist
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/spatie/phpunit-snapshot-assertions
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd phpunit-snapshot-assertions
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Node.js
쉬움 추천사전 준비물
npm install
package.json에 명시된 라이브러리들을 내려받아 설치합니다.
npm start
개발/실행 서버를 켭니다.
명령어 실행 후 터미널에 나타나는 주소(보통 http://localhost:3000 형태)를 브라우저에서 열어보세요.
3. PHP (Composer)
쉬움사전 준비물
composer require --dev spatie/phpunit-snapshot-assertions
이 명령어를 터미널에 그대로 입력해 실행하세요.
php -S localhost:8000 같은 내장 서버로 실행한 뒤 브라우저에서 http://localhost:8000 으로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
