Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testcase to illustrate the bug in #8330 #8336

Merged

Conversation

btheado
Copy link
Contributor

@btheado btheado commented Jul 4, 2024

Added a test that when run against the code prior to #8333, it crashes as mentioned in #8330. When run against the code after the fix, the test passes.

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tiddlywiki5 ✅ Ready (Inspect) Visit Preview Jul 6, 2024 0:16am

@btheado
Copy link
Contributor Author

btheado commented Jul 4, 2024

I added the test to editions/test/tiddlers/tests/data/data-widget rather than editions/tw5.com/tiddlers/testcases/DataWidget. I'm not sure if a copy is needed in both directories?

@Jermolene
Copy link
Owner

I added the test to editions/test/tiddlers/tests/data/data-widget rather than editions/tw5.com/tiddlers/testcases/DataWidget. I'm not sure if a copy is needed in both directories?

Thanks @btheado.

My thinking was that we should use editions/tw5.com/tiddlers/testcases for all new test cases.

I would also like to move the existing testcases from editions/test into tw5.com but at the same time we would need to add a "Narrative" tiddler, which those test cases lack at the moment.

@btheado
Copy link
Contributor Author

btheado commented Jul 5, 2024

My thinking was that we should use editions/tw5.com/tiddlers/testcases for all new test cases.

I would also like to move the existing testcases from editions/test into tw5.com but at the same time we would need to add a "Narrative" tiddler, which those test cases lack at the moment.

Will these test cases also be "included" into the test edition somehow? Or maybe change the npm run test script so it somehow invokes all the test cases from both editions? It is very convenient during development to be able to run all the tests from the command line.

@Jermolene
Copy link
Owner

Will these test cases also be "included" into the test edition somehow? Or maybe change the npm run test script so it somehow invokes all the test cases from both editions? It is very convenient during development to be able to run all the tests from the command line.

There's a tiddlywiki.files in the test edition that pulls in the testcases from the tw5.com edition:

https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/test/tiddlers/tests/from-tw5.com/tiddlywiki.files

@btheado
Copy link
Contributor Author

btheado commented Jul 6, 2024

Thanks, @Jermolene. Good to know. I moved the testcase. If this PR doesn't get merged to master prior to the next release, I can move it to target the tw5-com branch (it shouldn't go to tw5-com branch yet since it causes RSOD).

@Jermolene
Copy link
Owner

Thanks @btheado I think under the circumstances we can merge this to 'master'

@Jermolene Jermolene merged commit eeeb9f9 into Jermolene:master Jul 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants