Giter Club home page Giter Club logo

Comments (7)

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

What would this look like? My thought is that we could provide a "save session" command of some sort that would take your current history and render it all out to a file (or stdout or whatever) such that browser = require('testium').getBrowser() was at the top and browser was prepended to all commands.

This might simply be available as: saveSession(output=stdout) where output could be a relative or absolute file path.

You would obviously need to delete some lines and tweak some things, but it would get you to a good starting place.

from testium.

kpdecker avatar kpdecker commented on July 17, 2024

I think that would be above and beyond. Even something as simple as outputting the test executor logic and then a sample test would ease the migration from hacking around in the CLI to writing full tests.

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

Oh, so a command where you scaffold out the smallest runable test? Something like the following?

$ ./node_modules/.bin/testium --new
created ./test
created ./test/integration_runner.js
created ./test/integration/example_test.js

Where integration_runner.js would be set up to run the tests found in ./test/integration/, including example_test.js, which is a very basic test.

from testium.

kpdecker avatar kpdecker commented on July 17, 2024

Yeah that would be very helpful at the basic level but I do like the idea of using CLI to help generate some of that :)

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

If you have a more specific example, feel free to expand. I feel like I'm missing something.

from testium.

kpdecker avatar kpdecker commented on July 17, 2024

This comment is exactly what I was thinking when I initially field the bug.

Re my last comment, I was referencing your idea of allowing for the user's input from the CLI to be output to a test suite via the "save session" command.

from testium.

EndangeredMassa avatar EndangeredMassa commented on July 17, 2024

The documentation is better now. I don't think we really need something like this. If someone wants to PR it, I'm still open to merging it.

from testium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.