Commit graph

219 commits

Author SHA1 Message Date
Ankush Menat
5d1444c21c
docs: add missing help text for commands (#19039)
closes https://github.com/frappe/frappe/issues/19036

[skip ci]
2022-11-29 16:01:25 +05:30
gavin
440825a372
refactor: which > find_executable (#18872)
Use shutil from the standard library instead of distutils to find
executables in PATH
2022-11-14 18:15:38 +05:30
Ankush Menat
cfee53d573
refactor: load balanced parallel tests without orchestrator (#18386)
* feat: dry run in test runner for debuggin

* refactor: load balance TestRunner using # of tests
2022-10-12 12:13:24 +05:30
Ankush Menat
40f6a34840 build: pin testing-library/dom temporarily
refer https://github.com/testing-library/dom-testing-library/issues/1169
2022-09-19 16:21:23 +05:30
Ankush Menat
c400e18979 refactor: drop file upload plugin
Cypress supports this natively now!
2022-09-08 16:51:59 +05:30
Ankush Menat
e397b27d29 test: upgrade cypress from v6 to v10
chore: run cypress migrator

fix: specPattern should be an array

test: correct intercept URL

This is breaking change in cypress 7.0

test: make list view test rerunnable

test: redo undo tests and add compare doc

test: scroll to action button

chore: drop flaky tests

fix: remove scroll behaviour

fix: clear filters before running count test

test: input delay causes flake
2022-09-02 17:47:30 +05:30
Ankush Menat
4944246a0d
test: allow passing arbitrary args to cypress (#17997) 2022-08-30 21:27:25 +05:30
Gavin D'souza
287f33e0b1 fix(run-tests): Throw traceback with ctx variables 2022-08-08 16:06:41 +05:30
Gavin D'souza
bcfa8c276e fix: Set default port attribute for Database classes
db.default_port wil be available as a class attribute to hold defaults
for DB types.

Usage: frappe.conf.db_port or frappe.db.default_port
Why: I couldn't run the mariadb command because the defaults aren't set
for my system. server is remote / containerized. Setting port in
equivalent mysql command fixes this.
2022-07-22 13:16:26 +05:30
Gavin D'souza
1ccdad811a Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-19 16:23:24 +05:30
Ankush Menat
468a5c55a3
ci: fix weird version check in cypress tests (#17499) 2022-07-13 18:08:20 +05:30
Gavin D'souza
71b5c77e6e Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-05 14:55:02 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Gavin D'souza
b867dedf15 refactor(run-ui-tests): Maintain list of cypress plugins 2022-06-24 00:18:24 +05:30
ruthra kumar
a202f1a621 feat: run tests all doctypes in module def 2022-06-08 11:54:36 +05:30
Shariq Ansari
b44235587f
test: fixed failing UI test (#16958) 2022-05-24 13:17:21 +05:30
Shariq Ansari
3a2cd2650e test: fixed failing UI test 2022-05-19 15:00:54 +05:30
Gavin D'souza
aef0c0f66e fix: Handle unable to read commit errors 2022-04-19 19:21:25 +05:30
Himanshu
803f1fb061
feat: add/remove fields from kanban board (#16257)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
2022-04-18 15:45:19 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
0859a3060c chore: Remove comments, trailing whitespaces, etc 2022-02-24 11:35:00 +05:30
Suraj Shetty
20056a447f ci: Track server-side coverage as well while doing UI tests 2022-02-16 17:21:59 +05:30
Gavin D'souza
9091b2a037 feat(minor): Case option in run-tests for specifying TestCase 2022-01-28 18:31:35 +05:30
ritwik
5cfe3ad946
feat: add no-git option in make-app command and boilerplate generation (#15028) 2021-11-23 04:11:06 +00:00
Shariq Ansari
990b9f0ec3 test: Changing cypress browser to chrome 2021-11-10 11:45:53 +05:30
Gavin D'souza
6712bd9c93 fix: Leaking color in bench --help
Since the character to render NC was cut off due to the char limit, the
whole list of following commands and descriptions would also turn
yellow. Let's keep it colourless in --help. Only, make it yellow when
the command is executed directly.
2021-10-14 17:33:35 +05:30
Gavin D'souza
bc9b3e826b fix: Rollback, Release locals & Close db connection
When exitting console, rollback and destroy the Frappe connection. This
rollback is added so that rollback_observers are executed in case
methods are run in the console which shouldn't be committed.

For instance, running File.optimize will make changes to the file on
disk but may not update the corresponding data in the DB.
2021-10-14 17:30:51 +05:30
Suraj Shetty
4d435e271e
Merge branch 'develop' into coverage 2021-09-30 23:11:26 +05:30
MitulDavid
d8d8c8e54e ci: Code coverage for JS files 2021-09-20 21:11:47 +05:30
Gavin D'souza
8b881d01d5 chore: Add help for bench transform-database 2021-09-14 21:07:46 +05:30
Gavin D'souza
71dc7f474f perf: Single query to update a table 2021-09-02 15:51:49 +05:30
Gavin D'souza
b88eca73c3 Merge branch 'develop' into mariadb-10_6 2021-09-02 15:34:29 +05:30
Gavin D'souza
6ccf73026f feat(minor): transform-tables - Update table engine 2021-09-02 15:33:27 +05:30
Gavin D'souza
c472fd359f feat: Transform tables for given site
* Ability to update ROW_FORMAT for mentioned tables in --table option
* Failfast to stop on first error occured
* Show progressbar for overall conversion progress (remaining tales)
2021-09-02 13:07:19 +05:30
Gavin D'souza
3f2d0ac0cf feat(cli): New command 'db-console'
Don't remember what db console you have to open for what site!

How to use: `bench --site framework.io db-console`
2021-09-01 13:38:59 +05:30
Suraj Shetty
30f5edf1bc
Merge branch 'develop' into cli 2021-08-25 13:10:11 +05:30
ChillarAnand
32759cfc90 fix: Passed failfast flag to unit test runner in all scenarios 2021-08-25 08:03:48 +05:30
Suraj Shetty
7103ec1b6c
Merge branch 'develop' into feat-autoreloader-for-ipython 2021-08-20 11:51:58 +05:30
Pruthvi Patel
09868c26a9 feat: add --autoreload flag 2021-08-20 11:41:41 +05:30
MitulDavid
29dfffb9c5 refactor: Replace .format() with f-strings 2021-08-18 19:32:16 +05:30
MitulDavid
b417218f1d test: Add support for Testing-Library queries within Cypress tests 2021-08-17 19:06:01 +05:30
Gavin D'souza
f0cc541a71 feat: Add util to convert compressed tables to DYNAMIC
NOTE: This shouldn't be considered as a finished command. Only run this
if you understand what you're doing
2021-08-17 12:36:54 +05:30
Suraj Shetty
49684ca399 refactor: Make coverage context manager
- Decoupled coverage code from testing to setup code coverage before any import happen to get accurate coverage (before it used to skip import statements for some files)
2021-08-09 09:50:41 +05:30
Pruthvi Patel
6db4b6f2e6 fix: autoreload for only developer mode 2021-08-05 17:51:38 +05:30
Pruthvi Patel
b2b44b5939 feat: add autoreloader for ipython 2021-08-05 16:49:20 +05:30
Gavin D'souza
4959dd02f1 refactor(minor): frappe.translate.get_messages_from_file
* Don't re-define frappe util - get_bench_path
* Add Python types
* Style changes
2021-07-14 20:40:43 +05:30
Gavin D'souza
2ac1c45c66 refactor: Maintain common list for Frappe Coverage settings
* Maintain common settings for coverage settings of parallel and base test suites
* Expand FRAPPE_EXCLUSIONS list based on coveralls.io report
2021-07-14 20:40:24 +05:30
gavin
59f4b4d754
Merge pull request #13554 from gavindsouza/drop-data-import-legacy
chore: Drop Data Import Legacy
2021-07-13 20:39:00 +05:30
barredterra
04094110f5 fix: handle detached head
Workaround for https://github.com/gitpython-developers/GitPython/issues/633
2021-07-13 13:11:15 +02:00
Gavin D'souza
0d0e527416 chore: Show deprecation warning in command help 2021-07-13 11:21:21 +05:30