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

Plugin for SUnit test method pane integration with template auto-generation #498

Open
hernanmd opened this issue Feb 1, 2020 · 0 comments

Comments

@hernanmd
Copy link

hernanmd commented Feb 1, 2020

I started to work on a plugin to show two methods on the code pane of the System Browser.
It was discussed on the mailing list some time ago: http://forum.world.st/Test-method-auto-generation-in-Calypso-tp5104463.html

The code is dirty as I had to discover how to override ClyMethodCodeEditorToolMorph to duplicate method pane functionality for the new test pane, and add the text morph.

How it works:

WARNING: Every click on a method selector on a Calypso method list generates a test method/test class if not already created.

This plugin currently adds a tab with priority 1 (leftmost) to the Calypso System Browser. This should be changed for usability but I couldn't do it yet. Actually it would be better to add a checkbox at the bottom with "generate test" to switch to this editor morph.

The proposed tab contains two panes. Upper is for an editable generated test template. Bottom is the current method itself as a normal method pane.

It should be reviewed by someone more knowledgeable in Calypso. Currently I couldn't discover how to link the test code pane with a Command to Accept the test method.

There is some basic & dirty check for avoiding metaclass auto generation of method tests.

Link to the branch on the forked repo: https://github.com/hernanmd/Calypso/tree/clysunit/integration

Captura de pantalla 2020-02-01 a la(s) 18 12 25

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

No branches or pull requests

1 participant