-
Notifications
You must be signed in to change notification settings - Fork 123
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
bash script which tests that amberc command generates the js file #1095
base: master
Are you sure you want to change the base?
Conversation
Since Also, Bash scripts make it really hard to run those test on Windows platforms where they should definitely be run. |
Well, #991 tells specifically "functional tests", so these, end-to-end tests were in mind. Manfred Kröhnert wrote:
|
Working with Amber needs git and the recommendation for Microsoft Windows is to go for msysgit. It includes |
Yes, that is possible, but hackish and hard to achieve cleanly. The next step would be changeing it from bash to something else (shelljs seems like easy step to make it run platform-independently). Hannes Hirzel wrote:
|
It depends on how large the subset of bash commands used for this test is. It is probably quite small. The subset used by shelljs is small as well. OTHO a better integration with the rest of the Amber environment (i.e. nodejs) is desirable. In any case a bash script is a welcome addition to the documentation as it shows how to drive an Amber app from another scripting language. |
Yes, of course. I looked into the test and it really uses just a few basic things, so it is shelljsizable fine. |
@Herby Not sure about the need for shelljs at this moment. It will run fine on your Microsoft Windows machine as well. :) |
Of course it is needed. Canonical way to run all tests is 'npm test' (automatically used by travis for node projects; it calls 'grunt test' for amber). If you try to make this work on both unixes and windows, good luck with all the hacks. I don't care about possibility to run this single test (that I can do in git bash, of course). I care about their inclusion in overall test suite. That is what those issues are for - make tests for xxx so it can be included to automatic testing. I did not stress it because it was just natural to me. Maybe I should have done, though. Hannes Hirzel wrote:
|
Here the correction of amberctest.sh (we failed a little with the 3 commits) Quentin, Celia, Jonathan, Romain |
Squash them, pls. |
Then I think it is okay, if it can be made functional on non-Bash platforms, too. |
|
||
begin | ||
Transcript show \"Hello\" | ||
! !" > HelloApp.st |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be much cleaner if the files were stored in a temporary directory with a unique name.
This would reduce possible issues with existing files having the same name.
Additionally, it is then safe to remove the complete directory and not only select files.
There is still a lot of commits there (click graph icon, then network, you'll see there are still unneeded ones). Could you please, while having this branch checked out, rebase it ( (if you added more commits to the branch in the meantime, retain them in rebase as well, so you don't lose them, of course) (if you are afraid of error, then before doing any rebase, you can just |
Hello. Sorry to have not answered before. Sorry and thank you. Celia, Jonathan, Quentin, Romain |
Hello,
This script only tests the js file generation, we'll complete with further tests later.
Thanks.
Quentin, Célia, Jonathan, Romain