gobierto icon indicating copy to clipboard operation
gobierto copied to clipboard

3837 add rake tasks to run every module only

Open stbnrivas opened this issue 3 years ago • 4 comments

Closes #3837

:v: What does this PR do?

add new rake task to run test by every gobierto module

:mag: How should this be manually tested?

bin/rails -T # should show new task like:

bin/rails test:gobierto_admin
...

stbnrivas avatar Apr 24 '21 14:04 stbnrivas

What's pending here?

ferblape avatar Apr 26 '21 13:04 ferblape

I am not sure about:

  • namespace location...
  • use the full name of module example: gobierto_admin
  • if I will better use a gem like Open3 instead of puts

stbnrivas avatar Apr 26 '21 14:04 stbnrivas

  • namespace location...

Yes, use a new file (test.rake?). Let's have a single namespace per file

  • use the full name of module example: gobierto_admin

But you are already using the whole module name, right?

  • if I will better use a gem like Open3 instead of puts

The experience would be better if the output is shown instantly so Open3 might help, but don't lose too much time

ferblape avatar Apr 27 '21 04:04 ferblape

ok, I changed :

  • move to lib/test.rake
  • the command to output
  • add --fail-fast as params to task with
bin/rails test:gobierto_plans[true]

I will include Open3 next time

stbnrivas avatar Apr 27 '21 20:04 stbnrivas