Skip to content

Commit 37c0bc8

Browse files
Merge pull request #18 from dreamer-coding-555/fix_on_fail
Fix on fail not restting
2 parents e474fed + a68c775 commit 37c0bc8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Before getting started, make sure you have the following installed:
3939
# Git Wrap package definition
4040
# ======================
4141
[wrap-git]
42-
url = https://github.com/dreamer-coding-555/fossil-test.git
42+
url = https://github.com/fossillogic/fossil-test.git
4343
revision = v1.0.1
4444

4545
[provide]
@@ -53,7 +53,7 @@ Before getting started, make sure you have the following installed:
5353
dep = dependency('fossil-test')
5454
```
5555

56-
This line retrieves the `fossil-test` dependency, allowing you to use it in your project. **Releases Page**: Head over to the [Fossil Test Releases](https://github.com/dreamer-coding-555/fossil-test/releases) to find any preferred version of the framework. For the best experience with Fossil Test, it is recommended to always use the latest release.
56+
This line retrieves the `fossil-test` dependency, allowing you to use it in your project. **Releases Page**: Head over to the [Fossil Test Releases](https://github.com/fossillogic/fossil-test/releases) to find any preferred version of the framework. For the best experience with Fossil Test, it is recommended to always use the latest release.
5757

5858
## Fossil Test CLI Usage
5959

code/source/unittest/unittest.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ void fossil_test_environment_scoreboard(fossil_test_t *test) {
380380
// we just need to update the total scoreboard
381381
// so it is accurate for the fossil test.
382382
_fossil_test_scoreboard_update();
383+
_TEST_ENV.rule.should_pass = true; // reset counter for next test
383384
}
384385

385386
void fossil_test_run_testcase(fossil_test_t *test) {
@@ -393,8 +394,8 @@ void fossil_test_run_testcase(fossil_test_t *test) {
393394

394395
if (_TEST_ENV.rule.skipped && strcmp(test->marks, "skip") == 0) {
395396
return;
396-
} else if (_TEST_ENV.rule.skipped && strcmp(test->marks, "fail") == 0) {
397-
_ASSERT_INFO.should_fail = false;
397+
} else if (!_ASSERT_INFO.should_fail && strcmp(test->marks, "fail") == 0) {
398+
_ASSERT_INFO.should_fail = true;
398399
}
399400

400401
fossil_test_io_unittest_start(test);

0 commit comments

Comments
 (0)