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

Develop unit tests2 #337

Merged
merged 8 commits into from
Jan 5, 2019
Merged

Develop unit tests2 #337

merged 8 commits into from
Jan 5, 2019

Conversation

mgage
Copy link
Sponsor Member

@mgage mgage commented Dec 30, 2017

No description provided.

@mgage
Copy link
Sponsor Member Author

mgage commented Dec 30, 2017

This is a cleaner version of PR#337

To test:

Run each of these files using webwork2/clients/sendXMLRPC.pl or placing them in a webwork problem set
t/pg_test_problems/chem_react1.pg
t/pg_test_problems/chem_react2.pg
t/pg_test_problems/matrix_inverse2.pg (this one produces errors on purpose)
t/pg_test_problems/matrix_inverse.pg
t/pg_test_problems/test_units1.pg

this last test can be run from the command line:
perl t/test_units.t


This PR adds files that can be used to test modifications made in PR #333 to #335. These are individual .pg files that can be run using webwork2/clients/sendXMLRPC.pl or which can be placed in a problem set and run in a webwork course. The file t/pg_test_problems/matrix_inverse2.pg is meant to test errors -- so this file will fail with an error message. By choosing which lines to comment out in the problem you can test different error messages, but unfortunately you can only test one error at a time.

Add tests to pg/t to test the new units.

The t/test_units.t file was updated and a file t/pg_test_problems/test_units1.pg was added.
This file is run from the command line in the pg director

perl /t/test_units.t

Update the definition of parsec to include more accuracy -- it still doesn't pass the test_units.t file.

The definition of steradian is still iffy.

This can be used to test utf8 coverage as well as
the template math4_ar  which has right justification and is a preliminary
stab at creating a template suitable for arabic PG problems.
@mgage mgage merged commit d306aaa into openwebwork:develop Jan 5, 2019
@mgage mgage deleted the develop_unit_tests2 branch May 19, 2020 18:10
@mgage mgage restored the develop_unit_tests2 branch May 19, 2020 18:10
@mgage mgage deleted the develop_unit_tests2 branch May 19, 2020 18:11
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.

1 participant