[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pdf-tools ab61b04729 2/2: Add an FAQ on running tests loca
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pdf-tools ab61b04729 2/2: Add an FAQ on running tests locally |
Date: |
Mon, 9 May 2022 21:58:34 -0400 (EDT) |
branch: elpa/pdf-tools
commit ab61b0472980200f52e2e23782bc07255baebe72
Author: Vedang Manerikar <ved.manerikar@gmail.com>
Commit: Vedang Manerikar <ved.manerikar@gmail.com>
Add an FAQ on running tests locally
This addresses the question of getting immediate feedback on the
changes that a developer is making.
Of course, the test-suite itself is not extensive and needs to be
added to. We will get to it, slow and steady.
Related to: #105
---
README.org | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 7d28bb91a9..c2af7a2878 100644
--- a/README.org
+++ b/README.org
@@ -542,9 +542,14 @@ L/R scrolling breaks while zoomed into a pdf, with usage
of sublimity smooth scr
#+end_src
Toggling debug mode prints information about various operations in the
~*Messages*~ buffer, and this is useful to see what is happening behind the
scenes
-# Local Variables:
-# mode: org
-# End:
+** Run basic tests locally
+:PROPERTIES:
+:CREATED: [2022-05-09 Mon 21:27]
+:ID: 1CBE7325-A5A1-479B-9A98-BEEFBAC9D8FF
+:END:
+You can go to the ~pdf-tools~ folder and run ~make test~ to run the ERT tests
and check if the changes you have made to the code break any of the tests.
+
+The tests are written in ERT, which is the built-in testing system in Emacs.
However, they are run using ~Cask~ which you will have to install first, if you
don't have it already. You can install ~Cask~ by following the instructions on
their site at https://github.com/cask/cask
* FAQs
:PROPERTIES:
@@ -627,3 +632,10 @@ You can see this by opening the =Activity Monitor=,
selecting =Emacs=, clicking
#+end_example
If your Emacs is compiled for x86, the =Code Type= will be =x86_64=.
+
+** I am a developer, making changes to the ~pdf-tools~ source code
+:PROPERTIES:
+:CREATED: [2022-05-09 Mon 21:31]
+:ID: 2D173424-C211-4474-B0D0-83F4381CAFFA
+:END:
+Thank you for taking the time to contribute back to the code. You may find
some useful notes in the [[id:fd64c10c-4ea5-4ece-8d95-b723098dd4f6][Tips and
Tricks for Developers]] section. Please be sure to check it out!