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

test data #50

Closed

Conversation

bernt-matthias
Copy link
Collaborator

@bernt-matthias bernt-matthias commented Jul 6, 2019

this adds test CTD files for string, int, float, select parameters which might be a starting point for unit tests and improving the generated xml files

xml files are generated by: python CTDConverter/convert.py galaxy -i CTDConverter/test-data/*ctd -o CTDConverter/test-data -m ../macros.xml -b version

missing are at the moment at least files for input and output file parameters.

TODOs:

@Tomnl
Copy link
Contributor

Tomnl commented Jul 8, 2019

Hi @bernt-matthias,

Thanks for this. I written a few basic unit-tests to cover the data, should I contribute the unit-tests to this fork?

Also, on my local system when I run python CTDConverter/convert.py galaxy -i CTDConverter/test-data/*ctd -o CTDConverter/test-data -m ../macros.xml -b version I do not get the "[CDATA[" added to Galaxy XML tools.

e.g.
In the data you have provided

<description><![CDATA[String parameter tests]]></description>

But in my local convert I get just

<description>String parameter tests</description>

Any idea why?

@bernt-matthias
Copy link
Collaborator Author

Maybe I did something wrong. Have to check later. Having a 1st unit test here seems useful.

@Tomnl
Copy link
Contributor

Tomnl commented Jul 9, 2019

hi @bernt-matthias,

I have made a pull request to your fork of this with the unit-tests added

@bernt-matthias
Copy link
Collaborator Author

Will take care of this next week. Thanks..

@bernt-matthias
Copy link
Collaborator Author

Seems that this WorkflowConversion/CTDopts#19 is required to get a step further toward passing tests.

@mr-c any ideas how to continue here -- strategically? Would be great to continue here since we have some momentum at the moment (pun not intended...)

@bernt-matthias
Copy link
Collaborator Author

@Tomnl: hooray, tests are passing (the problem was that the xmls were generated on another branch). Will now add file input/output ctds (and whatever else is missing...)

@Tomnl
Copy link
Contributor

Tomnl commented Jul 15, 2019

Great!

- removed test file from OpenMS
- fixed xsd link
- extended select, i/o file test data
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.

2 participants